new Vue ({
	el: "#app", 
	data: {
		imgUrl: "https://app.meijiangzi.com/static/mini_",
		list: []
    },
	methods: {
	    getData: function() {
			var s = this;
			wx.showLoading({
				title: "加载中",
				mask: !0
			});
			this.$http.post(baseUrl+'/api/hospital/queryDoctors', {}).then(function(t) {
				wx.hideLoading();
				var a = t.data;
				if (!a.success) return wx.hideLoading(), wx.showToast({
					title: a.description,
					icon: "none",
					duration: 2e3,
					mask: !0
				}), !1;
				s.list = a.data;
				s.list.forEach(function(item){
					if(item.degreeCode == 'jsyz'){
						item.degreeName = "技术院长";
					}else if(item.degreeCode == 'zmzj'){
						item.degreeName = "知名专家";
					}else if(item.degreeCode == 'zzzj'){
						item.degreeName = "主治专家";
					}else if(item.degreeCode == 'zzys'){
						item.degreeName = "主任医师";
					}
				});
			}).catch(function(t) {
				wx.hideLoading(), wx.showToast({
					title: "网络错误，请稍后重试",
					icon: "none",
					duration: 2e3,
					mask: !1
				});
			})
		},
		toDetail: function(item){
			Jump.to(page.hospital.doctor_detail, 'id=' + item.guid);
		}
	},
	created: function() {
		this.getData();
	}
});